<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>浮动广告</title>
  </head>
  <body>
    <div
      id="ad"
      style="width: 100px; height: 100px; background-color: red"
    ></div>

    <script type="module">
      import {fun as Ad} from "./ad.js";
      Ad({
        el: "#ad",
        time: 1,
      });
    </script>
  </body>
</html>
